<!DOCTYPE html>
<html lang="zh_CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href=".//1.CSS">
    <style>
        /* 设置整个图片列表的大小 */
        .list-img{
            width: 590px;
            height: 470px;
            margin: 150px auto;
            position: relative;
            /* 开启相对定位 */
        }
        .list-img li{
            position: absolute;
/*给每张图片开启相对定位*/
        }
/*给要展示的图片设置层级*/
        .list-img li:nth-child(5){
            z-index: 4;
        }
        .point{
            width: 300px;
            height: 15px;
            position: absolute;
            z-index: 999;
            /* 设置层级，使其能够显示 */
            left: 50px;
            bottom: 30px;
            /* 调整圆点的位置 */
        }
        .point span{
            display: block;
            /* 使其变为块元素 */
            float: left;
            width: 7px;
            height: 7px;
            border-radius: 50%;
            /* 设置圆盒子 */
            margin-right: 10px;
            background-color: rgba(255, 255, 255, .5);
            border: 2px rgba(255, 255, 255, .5) solid;
        }
        .point span:hover{
            background-clip: content-box;
            /* 设置背景的范围 */
            background-color: #FFFFFF;
        }
    </style>
</head>
<body>
    <div class="list-img">
        <ul>
            <li><a href="#"><img src="../img/1.webp"></a></li>
            <li><a href="#"><img src="../img/2.webp"></a></li>
            <li><a href="#"><img src="../img/3.jpg"></a></li>
            <li><a href="#"><img src="../img/4.jpg"></a></li>
            <li><a href="#"><img src="../img/5.webp"></a></li>
            <li><a href="#"><img src="../img/6.webp"></a></li>
            <li><a href="#"><img src="../img/7.webp"></a></li>
            <li><a href="#"><img src="../img/8.jpg"></a></li>
        </ul>
        <div class="point">
            <span></span>
            <span></span>
            <span></span>
            <span></span>
            <span></span>
            <span></span>
            <span></span>
            <span></span>
        </div>
    </div>
</body>
</html>